import java.util.ArrayList;

public class User {
    private String account;
    private String code;
    private double  balance;
private ArrayList<User> information;
    public User(){}

    public ArrayList<User> getInformation() {
        return information;
    }

    public void setInformation(ArrayList<User> information) {
        this.information = information;
    }

    public User(String account, String code, double balance) {
        this.account = account;
        this.code = code;
        this.balance = balance;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    public void init(){
         information=new ArrayList<>();
        information.add(new User("zsn", "123", 1000));
        information.add(new User("lis", "234", 2000));
        information.add(new User("waw", "345", 3000));
        information.add(new User("xim", "456", 4000));
        information.add(new User("xig", "567", 5000));

    }
}
